<template>
  <view class="modal-content">
    <view class="modal-bg"></view>
    <view class="modal-content">
      <view class="modal-title"> {{ title }} </view>
      <view class="modal-body"> {{ content }} </view>
      <view class="modal-foot">
        <view class="concel-btn" @click="handleConcel">{{$t('person.cancle')}}</view>
        <view class="confirm-btn" @click="handleConfirm">{{$t('admin.confirm')}}</view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  name: "",
  props: {
    title: {
      type: String,
      default: "温馨提示",
    },
    content: {
      type: String,
      default: "",
    },
  },
  mixins: [],
  components: {},
  data() {
    return {};
  },
  mounted() {},
  watch: {},
  computed: {},
  methods: {
    handleConcel() {
      this.$emit("handleConcel");
    },
    handleConfirm() {
      this.$emit("handleConfirm");
    },
  },
};
</script>

<style lang="scss" scoped>
.modal-content {
  width: 100%;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 111;
  .modal-bg {
    width: 100%;
    height: 100%;
    background: #000000;
    opacity: 0.5;
  }
  .modal-content {
    width: 600rpx;
    height: 360rpx;
    position: absolute;
    left: calc(50% - 300rpx);
    top: calc(50% - 180rpx);
    z-index: 111;
    background-color: #ffffff;
    border-radius: 24rpx;
    display: flex;
    flex-direction: column;
    align-items: center;
    .modal-title {
      width: 100%;
      height: 90rpx;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 32rpx;
      font-family: PingFang SC;
      font-weight: bold;
      color: #262626;
    }
    .modal-body {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28rpx;
      font-family: PingFang SC;
      font-weight: 500;
      color: #262626;
    }
    .modal-foot {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 50rpx 0;
      .concel-btn {
        width: 230rpx;
        height: 76rpx;
        background: #ffffff;
        border: 2rpx solid #999999;
        border-radius: 38rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32rpx;
        font-family: PingFang SC;
        font-weight: 600;
        color: #262626;
      }
      .confirm-btn {
        width: 230rpx;
        height: 76rpx;
        background: #f0250e;
        border-radius: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32rpx;
        font-family: PingFang SC;
        font-weight: 600;
        color: #ffffff;
        margin-left: 20rpx;
      }
    }
  }
}
</style>
